package com.chengyu.core.request;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 用户消息
 * </p>
 *
 * @author ${author}
 * @since 2023-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MemberMessageReq对象", description="用户消息MemberMessageReq")
public class MemberMessageReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private String memberId;

    @ApiModelProperty(value = "用户phone")
    @NotBlank(message = "用户手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "是否已读: 0 未读 1已读")
    private Integer isRead;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "图片")
    @NotBlank(message = "图片不能为空")
    private String img;

    @ApiModelProperty(value = "通知大类(2:减排量待领取,3:订单)")
    @NotNull(message = "通知类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "业务id")
    private String businessId;

    @ApiModelProperty(value = "消息内容")
    @NotBlank(message = "消息内容不能为空")
    private String message;

}
